<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Pager.ascx.cs" Inherits="UserInterface.UserControls.Pager" %>
<div class="pager">
    <ul>
    <asp:PlaceHolder ID="FirstPagePlaceHolder" runat="server">
        <li><a href="<%=UrlPrefix%>page=1">&lt;&lt;</a></li>
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="PreviousPagePlaceHolder" runat="server">
        <li><a href="<%=UrlPrefix%>page=<%=PreviousPage%>">&lt;</a></li>
    </asp:PlaceHolder>
    <asp:Repeater ID="PagesRepeater" OnItemDataBound="PagesRepeater_ItemDataBound" runat="server">
        <ItemTemplate>
            <asp:PlaceHolder ID="NormalPagePlaceHolder" runat="server">
                <li><a href="<%=UrlPrefix%>page=<%# Container.DataItem %>"><%# Container.DataItem %></a></li>
            </asp:PlaceHolder>
            <asp:PlaceHolder ID="CurrentPagePlaceHolder" runat="server">
                <li class="current-page"><%# Container.DataItem %></li>
            </asp:PlaceHolder>
        </ItemTemplate>
    </asp:Repeater>
    <asp:PlaceHolder ID="NextPagePlaceHolder" runat="server">
        <li><a href="<%=UrlPrefix%>page=<%=NextPage%>">&gt;</a></li>
    </asp:PlaceHolder>
    <asp:PlaceHolder ID="LastPagePlaceHolder" runat="server">
        <li><a href="<%=UrlPrefix%>page=<%=PageCount%>">&gt;&gt;</a></li>
    </asp:PlaceHolder>
    </ul>
</div>